package ooday01;

/**构造方法的演示*/
public class ConsDemo {
    public static void main(String[] args) {
        Student ww = new Student();//调用无参的构造方法
        Student zs = new Student("张三",19);//调用两个参的构造方法
        Student ls = new Student("李四",23,"jad2023","002");//调用四个参的构造方法
        ww.sayHi();
        zs.sayHi();
        zs.study();
        ls.study();
        ls.sayHi();
        ls.play("王五");
    }
}
